{% extends "website/base.html" %} {% block content %}
馃┖

EMR Dashboard

Patients, encounters, labs, and compliance audit log
Patients Audit log
Patients
{{ stats.patients }}
Encounters
{{ stats.encounters }}
Open encounters
{{ stats.open_encounters }}
Lab uploads
{{ stats.lab_results }}
Recent patients
Newest records
+ New
{% for p in recent_patients %}
{{ p.full_name }}
{{ p.email }}{% if p.phone %} 路 {{ p.phone }}{% endif %}
{% if p.created_at %}{{ p.created_at|date:"M d, Y" }}{% endif %}
{% empty %}
No patients yet.
{% endfor %}
Compliance audit log
Who edited what (latest 10)
View all
{% for ev in recent_audit %}
{{ ev.action|upper }} 路 {{ ev.model_label }} #{{ ev.object_id }}
{% if ev.actor %}{{ ev.actor.username }}{% else %}System{% endif %} 路 {{ ev.created_at|date:"M d, Y H:i" }} {% if ev.ip_address %} 路 {{ ev.ip_address }}{% endif %}
{{ ev.object_repr }}
{% empty %}
No audit events yet.
{% endfor %}
{% endblock %}